import 'package:terminal_flutter_demo/models/user.dart';

const userJson = {
  "id": "1",
  "name": "tikeyc",
  "email": "tikeyc_ios@163.com",
  "registration_date_millis": 1,
  "address": {"country": "china"}
};

void main() {
  User user = User.fromJson(userJson);
  print(
      'name:${user.name}--email:${user.email}---address:${user.address.country}');
  print('------------');
}
